package com.scujj.cs6.model.dto.comment;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Schema(name = "评论更新数据传输对象", description = "评论更新数据传输对象")
@Data
public class CommentUpdateDTO {
    @Schema(description = "评论内容",example = "这是一个修改后的评论")
    @NotBlank(message = "评论内容不能为空")
    @NotNull(message = "评论内容不能为空")
    @Size(min = 1, max = 255, message = "评论内容长度必须在1-255之间")
    private String content;
}
